package com.prolestar.notice.mapper;

import java.util.List;

import com.prolestar.common.core.domain.AjaxResult;
import com.prolestar.notice.domain.PsNotice;
import com.prolestar.notice.domain.PsNoticeCondition;
import com.prolestar.notice.domain.PsNoticeDTO;
import com.prolestar.notice.domain.PsNoticeRecord;

/**
 * 通知公告Mapper接口
 * 
 * @author xuyp
 * @date 2022-11-12
 */
public interface PsNoticeMapper 
{
    /**
     * 查询通知公告
     * 
     * @param id 通知公告主键
     * @return 通知公告
     */
    public PsNotice selectPsNoticeById(Long id);

    /**
     * 查询通知公告列表
     * 
     * @param psNotice 通知公告
     * @return 通知公告集合
     */
    public List<PsNotice> selectPsNoticeList(PsNotice psNotice);

    /**
     * 新增通知公告
     * 
     * @param psNotice 通知公告
     * @return 结果
     */
    public int insertPsNotice(PsNoticeDTO psNoticeDTO);

    /**
     * 修改通知公告
     * 
     * @param psNotice 通知公告
     * @return 结果
     */
    public int updatePsNotice(PsNotice psNotice);

    /**
     * 删除通知公告
     * 
     * @param id 通知公告主键
     * @return 结果
     */
    public int deletePsNoticeById(Long id);

    /**
     * 批量删除通知公告
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePsNoticeByIds(Long[] ids);

    List<PsNotice> selectPsNoticeUserList(PsNotice psNotice);

    void insertPsNoticeRecord(PsNoticeDTO psNoticeDTO);

    void updateDisposePsNoticeRecord(PsNoticeRecord psNoticeRecord);

    List<PsNoticeRecord> selectDispositionList(PsNoticeRecord psNoticeRecord);

    void insertApportionPsNotice(PsNoticeDTO psNoticeDTO);

    void updateYesRead(PsNoticeRecord psNoticeRecord);

    Integer readStatus(PsNotice psNotice);

    Integer selectTransmissionsNumber(PsNotice psNotice);

    Integer feedbackStatus(PsNotice psNotice);

    Integer selectTransmissionsNumber1(PsNotice psNotice);

    List<PsNoticeRecord> selectPsNotice(PsNotice psNotice);

    List<PsNoticeRecord> selectPsNotice1(PsNotice psNotice);
}
